package com.luo.propertie;


import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Arrays;

/**
 * @Description TODO
 * @Version 1.0.0
 * @Date 2023/7/1
 * @Author wandaren
 */
// 启动类需要添加@EnableConfigurationProperties({ClassImpl.class})
@ConfigurationProperties("impl")
public class ClassImpl {
    private String name;
    private String[] clazz;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String[] getClazz() {
        return clazz;
    }

    public void setClazz(String[] clazz) {
        this.clazz = clazz;
    }

    public ClassImpl(String name, String[] clazz) {
        this.name = name;
        this.clazz = clazz;
    }

    public ClassImpl() {
    }

    @Override
    public String toString() {
        return "ClassImpl{" +
                "name='" + name + '\'' +
                ", clazz=" + Arrays.toString(clazz) +
                '}';
    }
}